package top.likeqc.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import top.likeqc.entity.Grade;
import top.likeqc.entity.Paper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import top.likeqc.entity.SysUser;
import top.likeqc.vo.PaperVO;

import java.util.List;

/**
 * <p>
 * 问卷 Mapper 接口
 * </p>
 *
 * @author likeqc
 * @since 2022-04-16
 */
public interface PaperMapper extends BaseMapper<Paper> {

    Page<PaperVO> listByCourseId(Page<PaperVO> page, Long courseId);


    Page<PaperVO> getTodoPaper(Page<PaperVO> page, Long userId);

    Page<PaperVO> getHistoryPaper(Page<PaperVO> page, Long userId);

    Page<PaperVO> getFuturePaper(Page<PaperVO> page, Long userId);

    List<Grade> getGradeListByPaperId(Long paperId);
}
